<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@page pageEncoding="UTF-8"%>
<%@include file="../WEB-INF/jspf/controlesessao.jspf"%>
<c:catch var ="catchException">
 <sql:update var="delete" dataSource="jdbc/dbo_MicrosoftSQLServer">
        delete from Turnos where id_turno=?
<sql:param value="${param.id_turno}"/>
</sql:update>

<p><font color='blue'>Registro removido com sucesso!</font></p>
<form name="form" type="post" action="fm_lista_Turnos.jsp">
<input class="submit" type="submit" value="Listar">

<input type="hidden" id="token" name="token" value="${sessionScope.token}" /> </form>
</c:catch>
<c:if test = "${catchException!=null}">
Erro : Não foi possível realizar a alteração.<br><br>
<p  style="color:red">${fn:substringAfter(catchException,"BD:")}</p>
</c:if>
